// 这个是我们后面新建的axios.js
import axios from '../lib/axios'
import qs from 'Qs'
 
export const postJson = (url,data)=>{
	return axios.post(
		url,
		data
	) 
	// return axios({
	//   method: 'post',
	//   url: url,
	//   data: data
	// });
}

export const postForm = (url,data)=>{
	return  axios.post(
		url,
		qs.stringify(data)
	) 
}


export const get = (url,param)=>{
	return 	axios.get(url, {
	    	params: param 
	  	}) 
}

export const postBlob = (url,data)=>{
	return axios({
	  method: 'post',
	  url: url,
	  data: qs.stringify(data),
	  responseType: 'blob'
	});
}